package com.example.entity;

public class RestResultGenerator {

	public static <T> ResponseResult<T> result(T data, boolean isSuccess, String message) {
		ResponseResult<T> result = new ResponseResult<T>();
		result.setData(data);
		result.setSuccess(isSuccess);
		result.setMessage(message);
		return result;
	}
}
